package Text0511;

public class UNStudent extends Student{
    {
        System.out.println("这是UN子类构造代码块");
    }

    public UNStudent(String name,int age,String ID){
        this.name = name;
        this.age = age;
        this.ID = ID;
        System.out.println("UN子类构造方法");
    }

    public UNStudent() {
        this.name = null;
        this.age = 0;
        this.ID = null;
        System.out.println("UN子类构造方法");
    }

    public void show(){
        System.out.println("UNStudent name:" + name + " age:" + age + " ID:" + ID);
    }

    public void setIN(double goal){
        math = goal;
        System.out.println("UNStudent math:" + math);
    }

    public void setINAll(String name, int age, String ID, double math){
        this.name = name;
        this.age = age;
        this.ID = ID;
        this.math = math;
        System.out.println("修改后的UNStudent");
    }
}
